package com.woniu.controller;

import com.woniu.domain.Menu;
import com.woniu.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
/**
 * @author: ljy  <br/>
 * Date: 2021/6/8:14:28  <br/>
 * Description:菜单控制器
 */

@RestController
public class MenuController {
    @Autowired
    private MenuService menuService;
    @RequestMapping("/leftMenu")
    public List<Menu> menuQuery(){
        return menuService.menuQuery();
    }
}
